package com.ly.heart.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ly.heart.domain.KingAllocateDetailEntity;

import java.util.List;

/**
 * 调拨单明细Mapper接口
 * 
 * @author wutao
 * @date 2024-08-07
 */
public interface KingAllocateDetailMapper extends BaseMapper<KingAllocateDetailEntity>
{
    /**
     * 查询调拨单明细
     * 
     * @param id 调拨单明细ID
     * @return 调拨单明细
     */
    public KingAllocateDetailEntity selectErpKingAllocateDetailById(String id);

    /**
     * 查询调拨单明细列表
     * 
     * @param erpKingAllocateDetail 调拨单明细
     * @return 调拨单明细集合
     */
    public List<KingAllocateDetailEntity> selectErpKingAllocateDetailList(KingAllocateDetailEntity erpKingAllocateDetail);

    /**
     * 新增调拨单明细
     * 
     * @param erpKingAllocateDetail 调拨单明细
     * @return 结果
     */
    public int insertErpKingAllocateDetail(KingAllocateDetailEntity erpKingAllocateDetail);

    /**
     * 修改调拨单明细
     * 
     * @param erpKingAllocateDetail 调拨单明细
     * @return 结果
     */
    public int updateErpKingAllocateDetail(KingAllocateDetailEntity erpKingAllocateDetail);

    /**
     * 删除调拨单明细
     * 
     * @param id 调拨单明细ID
     * @return 结果
     */
    public int deleteErpKingAllocateDetailById(String id);

    /**
     * 批量删除调拨单明细
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteErpKingAllocateDetailByIds(String[] ids);
}
